<h1>{$folder->getLabel()}</h1>
<div id="moduleTabs">
     <ul>
         <li><a href=""><span>{t}Properties{/t}</span></a></li>
     </ul>
</div>
<div id="folderLang" style="display:none">{$folder->getLang()}</div>
<div id="folderId" style="display:none">{$folder->getUniqueId()}</div>

<div id="tabContent">  
    {if $folder->getFolderNb() > 0}
        <table class="documentListTable">
            <thead>
            <tr>
                <th colspan="2">{t}Label{/t}</th>
                <th>{t}Media nb.{/t}</th>
            </tr>
            </thead>
            <tbody class="documentListItems">
            {foreach from=$subFolders item=subFolder}
                {hasDocRight document=$subFolder module="medias" rule="read"}
                <tr>
                    <td style="width: 40px; text-align: center;"><span class="listButtons">
                        {hasRight rule=medias_Delete}
                        {hasDocRight document=$subFolder module="medias" rule="delete"}
                        <a href="{$URL_RELATIVE}/bo/#{url route='deleteMediasFolder' docId=$subFolder->getUniqueId() docLang=$subFolder->getLang()}" class="nyroModal itemButton itemDeleteButton"></a>
                        {/hasDocRight}
                        {/hasRight}
                        <a href="{$URL_RELATIVE}/bo/#{$subFolder->getEditUrl()}" class="openNewWindow itemButton itemViewButton defaultAction"></a></span>
                    </td>

                    <td>{icon name="folder.png"} {$subFolder->getLabel()}</td>
                    <td style="text-align: center;">{$subFolder->getMediaNb()}</td>
                </tr>
                {/hasDocRight}
            {/foreach}
            </tbody>
        </table>
    {else}
        <div class="emptyFolder">
                {icon name="info.png"} {t}Please create a folder to add media{/t} - <a href="{$URL_RELATIVE}/bo/#{$addFolder}" class="greyButton nyroModal">{t}create a new folder{/t}</a>
        </div>
    {/if}
</div>
